<?php

$mytrustdirname = basename( dirname( __FILE__ ) ) ;
$mytrustdirpath = dirname( __FILE__ ) ;

$language = empty($GLOBALS['xoopsConfig']['language']) ? 'english' : $GLOBALS['xoopsConfig']['language'];
$lang_dir = dirname(__FILE__) . '/language/';
if (file_exists($lang_file = $lang_dir . $language . '/blocks.php') || file_exists($lang_file = $lang_dir . 'english/blocks.php')) {
    include_once $lang_file;
}

require_once "$mytrustdirpath/blocks/blocks.php" ;

?>